package com.xiaochong.tir.trades.mqrevTrades;

import com.xiaochong.tir.trades.component.DataSaveHbaseCommon;
import com.xiaochong.tir.trades.rabbit.BithumbMqQueue;
import com.xiaochong.tir.trades.rabbit.GateioMqQueue;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Description: Bithumb消费
 * @Author: org
 * @CreateDate: 2018/7/6 16:51
 */
@Component
public class BithumbRevTrades {
    @Resource
    private DataSaveHbaseCommon mqDataSaveHbaseCommon;

    @RabbitListener(queues = BithumbMqQueue.QUEUE_TRADES_BITHUMB_KRW)
    @RabbitHandler
    public void processBithumbKrw(byte[] body) {
        mqDataSaveHbaseCommon.MqDataSaveTradesAction(body);
    }

}
